﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Spark.Config.Api.DTO.Sms
{
    public class SendByTempRequest
    {
        [Required(ErrorMessage = "请输入手机号")]
        public string Mobile { get; set; }

        /// <summary>
        /// 模板ID
        /// </summary>
        [Required(ErrorMessage = "请输入模板ID")]
        public string TempId { get; set; }

        /// <summary>
        /// 模板参数
        /// </summary>
        public Dictionary<string, string> Parameters { get; set; }

        /// <summary>
        /// 项目编码
        /// </summary>
        [Required(ErrorMessage = "项目编码不能为空！", AllowEmptyStrings = false)]
        public string AppCode { get; set; }
    }
}